import { IMenu } from "../menu.interface";
import ArticleList from "./article-list";
import React from 'react';
import { FormHelper } from "../form-helper";
import { ArticleModel } from "../model/article.model";
import CategoryModel from "../model/category.model";
import Article from "./article";
import Category from "./category";
import CategoryList from "./category-list";

export const menus: IMenu = {
    'article-list': {
        title: '文章列表',
        icon: 'bars',
        component: <ArticleList></ArticleList>,
    },
    'article-add': {
        title: '新增文章',
        icon: 'file-add',
        component: <Article model={new ArticleModel()} name="add-article"></Article>,
    },
    'category-list': {
        title: '文章分类',
        icon: 'folder',
        component: <CategoryList></CategoryList>
    },
    'category-add': {
        icon: 'folder-add',
        title: '新增分类',
        component: <Category model={new CategoryModel()} name='add-category'></Category>
    }
}


export default menus;